package com.gxa.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("账户信息实体")
public class SysAccount {
    @ApiModelProperty(name = "id",notes = "账户ID,主键",dataType = "Integer",required = true)
    private Integer id;
    @ApiModelProperty(name = "type",notes = "类型(0:银联,1:微信,2:支付宝)",dataType = "Byte",required = true)
    private Byte type;
    @ApiModelProperty(name = "status",notes = "状态(0,有效，1，无效)",dataType = "Byte",required = true)
    private Byte status;
    @ApiModelProperty(name = "head",notes = "标题",dataType = "String",required = false)
    private String head;
    @ApiModelProperty(name = "account",notes = "账号",dataType = "String",required = true)
    private String account;
    @ApiModelProperty(name = "name",notes = "开户人",dataType = "String",required = false)
    private String name;
    @ApiModelProperty(name = "desc",notes = "描述",dataType = "String",required = false)
    private String description;
    @ApiModelProperty(name = "create_time",notes = "创建时间",dataType = "String",required = false)
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private String createTime;
    @ApiModelProperty(name = "updateTime",notes = "更新时间",dataType = "String",required = false)
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private String updateTime;
    @ApiModelProperty(name = "isDeleted",notes = "是否删除(0,未删,1,删除)",dataType = "Byte",required = false)
    private Byte isDeleted;
}
